package com.atguigu.boot.controller;

import com.atguigu.boot.bean.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: HelloController
 * Package: com.atguigu.boot.controller
 * Description:
 *
 * @Author Root
 * @Create 2023/3/24 9:59
 * @Version 1.0
 */
@RestController
public class HelloController {

    @Autowired
    private  Person person;

    @RequestMapping("/person")
    public Person person(){

        return person;
    }
}
